package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.ARRAY;

public class controller {
	private model c_model;
	
	//constructor
	public controller(int[]mylist){
		c_model = new model();
	}
	
	//method
	public int Calculate (int[]mylist){
		return c_model.TinhTong(mylist);
	}
	public int max(int[]mylist){
		return c_model.findMax(mylist);
	}
	public int posMax(int[]mylist){
		return c_model.findPositionMax(mylist);
	}
	public int posMin(int[]mylist){
		return c_model.findPositionMin(mylist);
	}
}
